#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QDir>
#include <QStringList>
#include <QProcess>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_load_clicked();

    void on_pushButton_play_clicked();

private:
    void additems(QStringList &list);
private:
    Ui::Widget *ui;
    QDir dir;
    QStringList playlist;
    bool isloadlist;
    QProcess *mplayer;

};
#endif // WIDGET_H
